<!--
 * @Author: 黄威
 * @Date: 2021-12-22 18:14:32
 * @LastEditors: 黄威
 * @LastEditTime: 2021-12-22 18:20:19
 * @Description: file content
-->
<template>
    <MgsServiceCatalog :data="treeData" />
</template>

<script>
import MgsServiceCatalog from '@mgs/components/mgs-service-catalog.vue';
import { transformToTreeData } from '@mgs/utils/tree';

const services = require('./services.json');

export default {
    components: { MgsServiceCatalog },
    data() {
        return {
            treeData: transformToTreeData(services, {
                idKey: 'pkid',
                parentKey: 'parentid',
                labelKey: 'catalogalias',
            }),
        };
    },
};
</script>
